package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HotelManagementMapper;
import com.ruoyi.system.domain.HotelManagement;
import com.ruoyi.system.service.IHotelManagementService;

/**
 * 酒店管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-03
 */
@Service
public class HotelManagementServiceImpl implements IHotelManagementService 
{
    @Autowired
    private HotelManagementMapper hotelManagementMapper;

    /**
     * 查询酒店管理
     * 
     * @param id 酒店管理主键
     * @return 酒店管理
     */
    @Override
    public HotelManagement selectHotelManagementById(Long id)
    {
        return hotelManagementMapper.selectHotelManagementById(id);
    }

    /**
     * 查询酒店管理列表
     * 
     * @param hotelManagement 酒店管理
     * @return 酒店管理
     */
    @Override
    public List<HotelManagement> selectHotelManagementList(HotelManagement hotelManagement)
    {
        return hotelManagementMapper.selectHotelManagementList(hotelManagement);
    }

    /**
     * 新增酒店管理
     * 
     * @param hotelManagement 酒店管理
     * @return 结果
     */
    @Override
    public int insertHotelManagement(HotelManagement hotelManagement)
    {
        return hotelManagementMapper.insertHotelManagement(hotelManagement);
    }

    /**
     * 修改酒店管理
     * 
     * @param hotelManagement 酒店管理
     * @return 结果
     */
    @Override
    public int updateHotelManagement(HotelManagement hotelManagement)
    {
        return hotelManagementMapper.updateHotelManagement(hotelManagement);
    }

    /**
     * 批量删除酒店管理
     * 
     * @param ids 需要删除的酒店管理主键
     * @return 结果
     */
    @Override
    public int deleteHotelManagementByIds(Long[] ids)
    {
        return hotelManagementMapper.deleteHotelManagementByIds(ids);
    }

    /**
     * 删除酒店管理信息
     * 
     * @param id 酒店管理主键
     * @return 结果
     */
    @Override
    public int deleteHotelManagementById(Long id)
    {
        return hotelManagementMapper.deleteHotelManagementById(id);
    }
}
